import { Vec2 } from 'cc';

export class Line {
    public weight: number = 0.5;
    public direction: Vec2;
    public point: Vec2;
    constructor(direction?: Vec2, point?: Vec2, weight?: number) {
        this.direction = direction || new Vec2();
        this.point = point || new Vec2();
        if (weight !== undefined) this.weight = weight;
    }
} 